package com.ssm.service;


import com.ssm.dao.adminDao;
import com.ssm.po.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class adminService {
    @Autowired
    private adminDao adminDao;
    public Boolean doLogin(Admin admin){
        admin = adminDao.doLogin(admin);
        if (admin == null){
            return false;
        }else {
            return true;
        }
    }
}
